//
//  BankUnit.m
//  Rong360
//
//  Created by tianliwei on 13/3/14.
//  Copyright (c) 2014 tianliwei. All rights reserved.
//

#import "BankUnit.h"

@implementation BankUnit
- (void)parseFromDic:(NSDictionary *)dic{
    self.name = [dic objectForKey:@"name"];
    self.bank_name = [dic objectForKey:@"bank_name"];
    self.logo = [dic objectForKey:@"logo"];
    self.url = [dic objectForKey:@"url"];
    NSDictionary *rateInfo = [dic objectForKey:@"rateInfo"];
    NSDictionary *firstHouseDic = [rateInfo objectForKey:@"1"];
//    NSString *rate = [firstHouseDic objectForKey:@"rate_score"];
//    self.rate = [NSString stringWithFormat:@"%f", [rate floatValue] * 100];
    self.rate = [firstHouseDic objectForKey:@"rate_desc"];
}
@end
